package br.com.datatraffic.datatax.domain.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;

import lombok.Getter;
import lombok.Setter;

@Entity public class HistoricoTicket {

	@Id @SequenceGenerator(name = "SQ_TBHISTORICO_TICKET", sequenceName = "SQ_TBHISTORICO_TICKET", allocationSize = 1) @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SQ_TBHISTORICO_TICKET") protected @Getter @Setter Long id;
	@ManyToOne @JoinColumn(name = "TICKET_ID") protected @Getter @Setter Ticket ticket;
	@ManyToOne protected @Getter @Setter SituacaoTicket situacaoTicket;
	@Column(name = "DATA_SITUACAO") protected @Getter @Setter Date dataSituacao;
	@Column(name = "USUARIO_ID") protected @Getter Long idUsuario;

}
